package com.chenyaowei.marketing.service.impl;

import java.util.List;

import com.chenyaowei.marketing.domain.CywSkuBounds;
import com.chenyaowei.marketing.mapper.CywSkuBoundsMapper;
import com.chenyaowei.marketing.service.ICywSkuBoundsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 商品sku积分Service业务层处理
 *
 * @author 陈耀威
 * @date 2023-11-28
 */
@Service
public class CywSkuBoundsServiceImpl implements ICywSkuBoundsService
{
    @Autowired
    private CywSkuBoundsMapper cywSkuBoundsMapper;

    /**
     * 查询商品sku积分
     *
     * @param id 商品sku积分主键
     * @return 商品sku积分
     */
    @Override
    public CywSkuBounds selectCywSkuBoundsById(Long id)
    {
        return cywSkuBoundsMapper.selectCywSkuBoundsById(id);
    }

    /**
     * 查询商品sku积分列表
     *
     * @param cywSkuBounds 商品sku积分
     * @return 商品sku积分
     */
    @Override
    public List<CywSkuBounds> selectCywSkuBoundsList(CywSkuBounds cywSkuBounds)
    {
        return cywSkuBoundsMapper.selectCywSkuBoundsList(cywSkuBounds);
    }

    /**
     * 新增商品sku积分
     *
     * @param cywSkuBounds 商品sku积分
     * @return 结果
     */
    @Override
    public int insertCywSkuBounds(CywSkuBounds cywSkuBounds)
    {
        return cywSkuBoundsMapper.insertCywSkuBounds(cywSkuBounds);
    }

    /**
     * 修改商品sku积分
     *
     * @param cywSkuBounds 商品sku积分
     * @return 结果
     */
    @Override
    public int updateCywSkuBounds(CywSkuBounds cywSkuBounds)
    {
        return cywSkuBoundsMapper.updateCywSkuBounds(cywSkuBounds);
    }

    /**
     * 批量删除商品sku积分
     *
     * @param ids 需要删除的商品sku积分主键
     * @return 结果
     */
    @Override
    public int deleteCywSkuBoundsByIds(Long[] ids)
    {
        return cywSkuBoundsMapper.deleteCywSkuBoundsByIds(ids);
    }

    /**
     * 删除商品sku积分信息
     *
     * @param id 商品sku积分主键
     * @return 结果
     */
    @Override
    public int deleteCywSkuBoundsById(Long id)
    {
        return cywSkuBoundsMapper.deleteCywSkuBoundsById(id);
    }

    @Override
    public int savaBatch(List<CywSkuBounds> boundsList) {
        return cywSkuBoundsMapper.savaBatch(boundsList);
    }

    @Override
    public List<CywSkuBounds> selectListBySkuIds(List<Long> skuIds) {
        return cywSkuBoundsMapper.selectListBySkuIds(skuIds);
    }
}
